<?php
/**
 * sami php 文档输出工具配置文件
 *
 * @see storage/bin/sami/README.md
 *
 * @author Zeon <scplay@gmail.com>
 * @date 2019/6/11 13:55
 * @copyright PanxSoft Inc.
 */
use Sami\Sami;
use Symfony\Component\Finder\Finder;

const DIR_SOURCE = 'app';
const DIR_DIST = 'public/sami/build';
const DIR_CACHE = 'public/sami/cache';

/**
 * @link https://github.com/FriendsOfPHP/sami#configuration - 配置文档说明
 */
$iterator = Finder::create()
    ->files()
    ->name('*.php')
    ->in(DIR_SOURCE)
;

return new Sami($iterator, [
    'build_dir' => DIR_DIST,
    'cache_dir' => DIR_CACHE,
]);


